﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Text;
using NK.Models.Financial;

namespace NK.Models.Contexts
{
    public class FinancialContext:DbContext    
    {
        public DbSet<Financial.Payment> Payments { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        }

        public DbSet<Payout> Payouts { get; set; }

        public DbSet<Payin> Payins { get; set; }
    }
}
